/*   
 * Copyright (c) 2010-2020 Founder Ltd. All Rights Reserved.   
 *   
 * This software is the confidential and proprietary information of   
 * Founder. You shall not disclose such Confidential Information   
 * and shall use it only in accordance with the terms of the agreements   
 * you entered into with Founder.   
 *   
 */
package com.wujw.auto.utils;

/**
 * mybatie的parameterType的处理工具类
 * 
 * @author wujw
 * @version 1.0, 2017年11月11日
 */
public class ParamTypeUtil {

    public static String getParamType(String dataType) {
        String type = "";
        if ("String".equals(dataType)) {
            type = "java.lang.String";
        }
        if ("BigDecimal".equals(dataType)) {
            type = "java.math.BigDecimal";
        }
        if ("boolean".equals(dataType)) {
            type = "java.lang.Boolean";
        }
        if ("byte".equals(dataType)) {
            type = "java.lang.Byte";
        }
        if ("short".equals(dataType)) {
            type = "java.lang.Short";
        }
        if ("int".equals(dataType)) {
            type = "java.lang.Integer";
        }
        if ("Integer".equals(dataType)) {
            type = "java.lang.Integer";
        }
        if ("long".equals(dataType)) {
            type = "java.lang.Long";
        }
        if ("float".equals(dataType)) {
            type = "java.lang.Double";
        }
        if ("double".equals(dataType)) {
            type = "java.lang.Double";
        }
        if ("Date".equals(dataType)) {
            type = "java.util.Date";
        }
        if ("Time".equals(dataType)) {
            type = "java.util.Time";
        }
        if ("Timestamp".equals(dataType)) {
            type = "java.util.Timestamp";
        }
        if ("List".equals(dataType)) {
            type = "java.util.List";
        }
        if ("Map".equals(dataType)) {
            type = "java.util.Map";
        }
        return type;
    }
}